package com.bey.bow.utils;

import java.util.Date;

import org.springframework.web.multipart.MultipartFile;

public class FileNameGenerator {

	public static String getNewFileName(MultipartFile file) {
		String fileName = file.getOriginalFilename();
		String fileExten = fileName.substring(fileName.lastIndexOf("."));
		Date date = new Date();
		return date.getTime() + fileExten;
	}

}
